package com.wk.code.wkserver.controller.admin;

import com.wk.code.wkserver.request.base.BasePageRequest;
import com.wk.code.wkserver.response.result.R;
import com.wk.code.wkserver.service.ITechApplyRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author wq
 * @version 1.0
 * @date 2021/06/15 14:44
 */
@RestController
@RequestMapping("admin/techApply")
@AllArgsConstructor
@Api(tags = "admin-技术申请")
public class AdminTechApplyRecordController {

    private final ITechApplyRecordService techApplyRecordService;


    /**
     * 分页
     *
     * @param request 请求参数
     * @return R
     */
    @ApiOperation(value = "技术申请分页")
    @PostMapping("/page")
    private R page(@RequestBody BasePageRequest request) {
        return R.success(techApplyRecordService.pageList(request));
    }


}
